<?php
/**
 * ClassName: PrescriptMedicineModel
 * Description:
 * @Author 周昌
 * @Create 2023/11/30 10:51
 */

namespace model;


class PrescriptMedicineModel extends BaseModel
{
    protected $name='prescript_medicine';

    //时间获取器
    public function getAddTimeAttr($value){
        if(!empty($value)&& is_integer($value)){
            return date('Y-m-d H:i:s', $value);
        }else{
            return $value;
        }

    }
}